package com.kk.interpreter;

import java.util.HashMap;

/**
 * 变量解释器
 *
 * @author o_o
 * @date 2022-06-19
 */
public class VarExpression extends Expression {
    private String key;


    public VarExpression(String key) {
        this.key = key;
    }

    @Override
    public int interpreter(HashMap<String, Integer> var) {
        return var.get(key);
    }
}
